<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>


<script type="text/javascript" src="js/jquery.itextclear.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('input[type=text], input[type=password], input[type=url], input[type=email], input[type=number], textarea', '.form').iTextClear();
    });
</script>
<!-- jQplot CSS -->

<link rel="stylesheet" media="screen" href="${ctx}/css/Tree.css"/>
<link rel="stylesheet" media="screen" href="${ctx}/css/docs.css"/>
<!-- jQplot CSS END -->

<!-- DATATABLES CSS -->
<link rel="stylesheet" media="screen" href="lib/datatables/css/vpad.css"/>
<script type="text/javascript" src="lib/datatables/js/jquery.dataTables.js"></script>
<script type="text/javascript">
    /*$(document).ready(function() {
     $('#example').dataTable({
     "sPaginationType": "full_numbers"
     });
     });*/
</script>
<!-- DATATABLES CSS END -->

<script>
    $(document).ready(function () {
        $('#simple-button').popover('#simple-popover', {});
        $('#top-button').popover('#top-popover', {preventLeft:true, preventRight:true, preventBottom:true});
    });
</script>

<style>
    .current_organization_ul li {
        height: 22px;
        line-height: 22px
    }

    span.title {
        font-weight: 600;
        padding-right: 15px;
    }
</style>

<h1 class="page-title">现金报支单 - 审核</h1>
<div class="container_12 clearfix leading">
    <section class="tabs grid_12 leading">
        <ul class="clearfix">
            <li><a href="#" class="current">现金报支单</a></li>
        </ul>
        <section>
            <section class="clearfix" style="display: block;">
                <header class="grid_12 alpha omega">
                </header>
                <div id="demo" class="clearfix">
                    <table class="display" id="example">
                        <thead>
                        <tr>
                            <th style=" width:15%">流水号</th>
                            <th>员工号</th>
                            <th>请款人</th>
                            <th>部门</th>
                            <th>职位</th>
                            <th style=" width:15%">时间</th>
                            <th style=" width:10%">报支类别</th>
                            <th style=" width:20%">总金额</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr class="gradeX">
                            <td>${financialReportForm.serialNumber}</td>
                            <s:if test="#request.financialReportForm.creator_id == -1000">
                            <td>无</td>
                            <td>超级管理员</td>
                            <td>无</td>
                            <td><span id="GridView1_ctl04_Label0">无</span></td>
                            </s:if>
                            <s:else>
                            <td>${financialReportForm.work.workNo}</td>
                            <td>${financialReportForm.work.baseId.name}</td>
                            <td>${financialReportForm.work.organization.fullName}</td>
                            <td><span id="GridView1_ctl04_Label1">${financialReportForm.work.duty.dutyName}</span></td>
                            </s:else>
                            <td><s:date name="#request.financialReportForm.create_date" format="yyyy-MM-dd"/></td>
                            <td>${financialReportForm.type}</td>
                            <td>${financialReportForm.amount}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </section>
        </section>
    </section>
    <div class="tabs side grid_12 leading">
        <div class="clear"></div>
    </div>
</div>

<div class="clear"></div>
<div class="container_12 clearfix leading">
    <div class="clear"></div>
    <div class="portlet leading">
        <header>
            <h6 style="margin-bottom:0px"><a href="#"><span style="background:url(${ctx}/images/img/script_link.png)" class="icon">&nbsp;</span>报支类别 </a> 差旅费
            </h6>
        </header>

        <section class="tabs side">
            <ul class="clearfix" style="width:150px">
                <s:iterator value="#request.formDetails" var="detail" status="sta">
                <li style="width:150px"><a href="#"><span style="background:url(${ctx}/images/img/table_add.png)" class="icon">&nbsp;</span>第${sta.index+1}项</a></li>
                </s:iterator>
            </ul>
            <section style="margin-left:150px">
                <s:iterator value="#request.formDetails" var="detail" status="sta">
                <section class="clearfix">
                    <table class="display" id="example1" style="clear:none">
                        <thead>
                        </thead>
                        <tbody>
                        <tr class="gradeA">
                            <td>项目明细</td>
                            <td><strong>
                                <input name="username3" type="text" style="width:100px" value="${detail.info}" readonly="readonly"/>
                            </strong></td>
                            <td>金额</td>
                            <td><strong>
                                <input name="username2" type="text" style="width:100px" value="${detail.money}" readonly="readonly"/> 元
                            </strong></td>
                        </tr>
                        <tr class="gradeA">
                            <td>经办人</td>
                            <td><strong>
                                <input name="username4" type="text" style="width:100px" value="${detail.operator}" readonly="readonly"/>
                            </strong></td>
                            <td>审核金额</td>
                            <td><strong>
                                <input name="username7" type="text" style="width:100px" value="${detail.auditMoney}" readonly="readonly"/>
                                元</strong></td>
                        </tr>
                        </tbody>
                    </table>
                </section>
                </s:iterator>
            </section>
            <div class="clear"></div>
            <div class="container_12 clearfix leading" style=" padding-left:20px">
                <div class="form-action clearfix" style="margin-left:115px">
                    <p>&nbsp;</p>
                    <p><strong>合计：</strong>
                        <input name="username" type="text" style="width:120px" value="${financialReportForm.amount}元" readonly="readonly"/>
                        <strong>金额大写：</strong>
                        <input name="username" type="text" style="width:200px" value="${financialReportForm.amountRmb}" readonly="readonly"/>
                    </p>
                </div>
            </div>
        </section>
    </div>
    <div class="clear"></div>
</div>

<%@ include file="/WEB-INF/pages/common/common_audit.jsp" %>